package cn.edu.sgu.www.pms.mapper;

import cn.edu.sgu.www.pms.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 通过用户ID查询角色列表
     * @param userId 用户ID
     * @return List<Role>
     */
    List<Role> selectByUserId(@Param("userId") String userId);
}